//
//  NRWSendCodeApi.m
//  NRWMall
//
//  Created by 邢毅 on 2018/6/14.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWSendCodeApi.h"

@implementation NRWSendCodeApi

- (NSString *)requestUrl {
    
    return [NSString stringWithFormat:@"%@%@", Api(), @"/controller/clientUser/getLoginValidCode"];
}

- (YTKRequestMethod)requestMethod {
    
    return YTKRequestMethodGET;
}

- (id)requestArgument {
    
    if (isNotEmptyString(self.userMobile)) {
        
        return @{@"userMobile": self.userMobile};
    } else {
        
        [NRWMessageHUD showMessage:@"登录出错" forTime:1.5 withRemindId:remindFail];
        return nil;
    }
}

@end
